home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2004 August / CyberMycha 08-2004 (Poland).bin / Spiderman2 / MainApp.cab / UWindow.u / UWindowWindow_UWindowMessageBoxCW_ScriptText.TextBuffer < prev    next >
Unknown  |  2004-01-13  |  4.8 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 51 4c 63 6c 61 73 73 20 |........|QLclass |
|00000010| 55 57 69 6e 64 6f 77 4d | 65 73 73 61 67 65 42 6f |UWindowM|essageBo|
|00000020| 78 43 57 20 65 78 74 65 | 6e 64 73 20 55 57 69 6e |xCW exte|nds UWin|
|00000030| 64 6f 77 44 69 61 6c 6f | 67 43 6c 69 65 6e 74 57 |dowDialo|gClientW|
|00000040| 69 6e 64 6f 77 3b 0d 0a | 0d 0a 76 61 72 20 4d 65 |indow;..|..var Me|
|00000050| 73 73 61 67 65 42 6f 78 | 42 75 74 74 6f 6e 73 20 |ssageBox|Buttons |
|00000060| 42 75 74 74 6f 6e 73 3b | 0d 0a 0d 0a 76 61 72 20 |Buttons;|....var |
|00000070| 4d 65 73 73 61 67 65 42 | 6f 78 52 65 73 75 6c 74 |MessageB|oxResult|
|00000080| 20 45 6e 74 65 72 52 65 | 73 75 6c 74 3b 0d 0a 76 | EnterRe|sult;..v|
|00000090| 61 72 20 55 57 69 6e 64 | 6f 77 53 6d 61 6c 6c 42 |ar UWind|owSmallB|
|000000a0| 75 74 74 6f 6e 20 59 65 | 73 42 75 74 74 6f 6e 2c |utton Ye|sButton,|
|000000b0| 20 4e 6f 42 75 74 74 6f | 6e 2c 20 4f 4b 42 75 74 | NoButto|n, OKBut|
|000000c0| 74 6f 6e 2c 20 43 61 6e | 63 65 6c 42 75 74 74 6f |ton, Can|celButto|
|000000d0| 6e 3b 0d 0a 76 61 72 20 | 6c 6f 63 61 6c 69 7a 65 |n;..var |localize|
|000000e0| 64 20 73 74 72 69 6e 67 | 20 59 65 73 54 65 78 74 |d string| YesText|
|000000f0| 2c 20 4e 6f 54 65 78 74 | 2c 20 4f 4b 54 65 78 74 |, NoText|, OKText|
|00000100| 2c 20 43 61 6e 63 65 6c | 54 65 78 74 3b 0d 0a 76 |, Cancel|Text;..v|
|00000110| 61 72 20 55 57 69 6e 64 | 6f 77 4d 65 73 73 61 67 |ar UWind|owMessag|
|00000120| 65 42 6f 78 41 72 65 61 | 20 4d 65 73 73 61 67 65 |eBoxArea| Message|
|00000130| 41 72 65 61 3b 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |Area;...|.functio|
|00000140| 6e 20 43 72 65 61 74 65 | 64 28 29 0d 0a 7b 0d 0a |n Create|d()..{..|
|00000150| 09 53 75 70 65 72 2e 43 | 72 65 61 74 65 64 28 29 |.Super.C|reated()|
|00000160| 3b 0d 0a 09 53 65 74 41 | 63 63 65 70 74 73 46 6f |;...SetA|cceptsFo|
|00000170| 63 75 73 28 29 3b 0d 0a | 0d 0a 09 4d 65 73 73 61 |cus();..|...Messa|
|00000180| 67 65 41 72 65 61 20 3d | 20 55 57 69 6e 64 6f 77 |geArea =| UWindow|
|00000190| 4d 65 73 73 61 67 65 42 | 6f 78 41 72 65 61 28 43 |MessageB|oxArea(C|
|000001a0| 72 65 61 74 65 57 69 6e | 64 6f 77 28 63 6c 61 73 |reateWin|dow(clas|
|000001b0| 73 27 55 57 69 6e 64 6f | 77 4d 65 73 73 61 67 65 |s'UWindo|wMessage|
|000001c0| 42 6f 78 41 72 65 61 27 | 2c 20 31 30 2c 20 31 30 |BoxArea'|, 10, 10|
|000001d0| 2c 20 57 69 6e 57 69 64 | 74 68 2d 32 30 2c 20 57 |, WinWid|th-20, W|
|000001e0| 69 6e 48 65 69 67 68 74 | 2d 34 34 29 29 3b 0d 0a |inHeight|-44));..|
|000001f0| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 4b 65 |}....fun|ction Ke|
|00000200| 79 44 6f 77 6e 28 69 6e | 74 20 4b 65 79 2c 20 66 |yDown(in|t Key, f|
|00000210| 6c 6f 61 74 20 58 2c 20 | 66 6c 6f 61 74 20 59 29 |loat X, |float Y)|
|00000220| 0d 0a 7b 0d 0a 09 6c 6f | 63 61 6c 20 55 57 69 6e |..{...lo|cal UWin|
|00000230| 64 6f 77 4d 65 73 73 61 | 67 65 42 6f 78 20 50 3b |dowMessa|geBox P;|
|00000240| 0d 0a 0d 0a 09 50 20 3d | 20 55 57 69 6e 64 6f 77 |.....P =| UWindow|
|00000250| 4d 65 73 73 61 67 65 42 | 6f 78 28 50 61 72 65 6e |MessageB|ox(Paren|
|00000260| 74 57 69 6e 64 6f 77 29 | 3b 0d 0a 0d 0a 09 69 66 |tWindow)|;.....if|
|00000270| 28 4b 65 79 20 3d 3d 20 | 47 65 74 50 6c 61 79 65 |(Key == |GetPlaye|
|00000280| 72 4f 77 6e 65 72 28 29 | 2e 50 6c 61 79 65 72 2e |rOwner()|.Player.|
|00000290| 43 6f 6e 73 6f 6c 65 2e | 45 49 6e 70 75 74 4b 65 |Console.|EInputKe|
|000002a0| 79 2e 49 4b 5f 45 6e 74 | 65 72 20 26 26 20 45 6e |y.IK_Ent|er && En|
|000002b0| 74 65 72 52 65 73 75 6c | 74 20 21 3d 20 4d 52 5f |terResul|t != MR_|
|000002c0| 4e 6f 6e 65 29 0d 0a 09 | 7b 0d 0a 09 09 50 20 3d |None)...|{....P =|
|000002d0| 20 55 57 69 6e 64 6f 77 | 4d 65 73 73 61 67 65 42 | UWindow|MessageB|
|000002e0| 6f 78 28 50 61 72 65 6e | 74 57 69 6e 64 6f 77 29 |ox(Paren|tWindow)|
|000002f0| 3b 0d 0a 09 09 50 2e 52 | 65 73 75 6c 74 20 3d 20 |;....P.R|esult = |
|00000300| 45 6e 74 65 72 52 65 73 | 75 6c 74 3b 0d 0a 09 09 |EnterRes|ult;....|
|00000310| 50 2e 43 6c 6f 73 65 28 | 29 3b 0d 0a 09 7d 0d 0a |P.Close(|);...}..|
|00000320| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 42 65 |}....fun|ction Be|
|00000330| 66 6f 72 65 50 61 69 6e | 74 28 43 61 6e 76 61 73 |forePain|t(Canvas|
|00000340| 20 43 2c 20 66 6c 6f 61 | 74 20 58 2c 20 66 6c 6f | C, floa|t X, flo|
|00000350| 61 74 20 59 29 0d 0a 7b | 0d 0a 09 53 75 70 65 72 |at Y)..{|...Super|
|00000360| 2e 42 65 66 6f 72 65 50 | 61 69 6e 74 28 43 2c 20 |.BeforeP|aint(C, |
|00000370| 58 2c 20 59 29 3b 0d 0a | 0d 0a 09 4d 65 73 73 61 |X, Y);..|...Messa|
|00000380| 67 65 41 72 65 61 2e 53 | 65 74 53 69 7a 65 28 57 |geArea.S|etSize(W|
|00000390| 69 6e 57 69 64 74 68 2d | 32 30 2c 20 57 69 6e 48 |inWidth-|20, WinH|
|000003a0| 65 69 67 68 74 2d 34 34 | 29 3b 0d 0a 0d 0a 09 73 |eight-44|);.....s|
|000003b0| 77 69 74 63 68 28 42 75 | 74 74 6f 6e 73 29 0d 0a |witch(Bu|ttons)..|
|000003c0| 09 7b 0d 0a 09 63 61 73 | 65 20 4d 42 5f 59 65 73 |.{...cas|e MB_Yes|
|000003d0| 4e 6f 43 61 6e 63 65 6c | 3a 0d 0a 09 09 43 61 6e |NoCancel|:....Can|
|000003e0| 63 65 6c 42 75 74 74 6f | 6e 2e 57 69 6e 4c 65 66 |celButto|n.WinLef|
|000003f0| 74 20 3d 20 57 69 6e 57 | 69 64 74 68 20 2d 20 35 |t = WinW|idth - 5|
|00000400| 32 3b 0d 0a 09 09 43 61 | 6e 63 65 6c 42 75 74 74 |2;....Ca|ncelButt|
|00000410| 6f 6e 2e 57 69 6e 54 6f | 70 20 3d 20 57 69 6e 48 |on.WinTo|p = WinH|
|00000420| 65 69 67 68 74 20 2d 20 | 32 30 3b 0d 0a 09 09 4e |eight - |20;....N|
|00000430| 6f 42 75 74 74 6f 6e 2e | 57 69 6e 4c 65 66 74 20 |oButton.|WinLeft |
|00000440| 3d 20 57 69 6e 57 69 64 | 74 68 20 2d 20 31 30 34 |= WinWid|th - 104|
|00000450| 3b 0d 0a 09 09 4e 6f 42 | 75 74 74 6f 6e 2e 57 69 |;....NoB|utton.Wi|
|00000460| 6e 54 6f 70 20 3d 20 57 | 69 6e 48 65 69 67 68 74 |nTop = W|inHeight|
|00000470| 20 2d 20 32 30 3b 0d 0a | 09 09 59 65 73 42 75 74 | - 20;..|..YesBut|
|00000480| 74 6f 6e 2e 57 69 6e 4c | 65 66 74 20 3d 20 57 69 |ton.WinL|eft = Wi|
|00000490| 6e 57 69 64 74 68 20 2d | 20 31 35 36 3b 0d 0a 09 |nWidth -| 156;...|
|000004a0| 09 59 65 73 42 75 74 74 | 6f 6e 2e 57 69 6e 54 6f |.YesButt|on.WinTo|
|000004b0| 70 20 3d 20 57 69 6e 48 | 65 69 67 68 74 20 2d 20 |p = WinH|eight - |
|000004c0| 32 30 3b 0d 0a 09 09 62 | 72 65 61 6b 3b 0d 0a 09 |20;....b|reak;...|
|000004d0| 63 61 73 65 20 4d 42 5f | 59 65 73 4e 6f 3a 0d 0a |case MB_|YesNo:..|
|000004e0| 09 09 4e 6f 42 75 74 74 | 6f 6e 2e 57 69 6e 4c 65 |..NoButt|on.WinLe|
|000004f0| 66 74 20 3d 20 57 69 6e | 57 69 64 74 68 20 2d 20 |ft = Win|Width - |
|00000500| 35 32 3b 0d 0a 09 09 4e | 6f 42 75 74 74 6f 6e 2e |52;....N|oButton.|
|00000510| 57 69 6e 54 6f 70 20 3d | 20 57 69 6e 48 65 69 67 |WinTop =| WinHeig|
|00000520| 68 74 20 2d 20 32 30 3b | 0d 0a 09 09 59 65 73 42 |ht - 20;|....YesB|
|00000530| 75 74 74 6f 6e 2e 57 69 | 6e 4c 65 66 74 20 3d 20 |utton.Wi|nLeft = |
|00000540| 57 69 6e 57 69 64 74 68 | 20 2d 20 31 30 34 3b 0d |WinWidth| - 104;.|
|00000550| 0a 09 09 59 65 73 42 75 | 74 74 6f 6e 2e 57 69 6e |...YesBu|tton.Win|
|00000560| 54 6f 70 20 3d 20 57 69 | 6e 48 65 69 67 68 74 20 |Top = Wi|nHeight |
|00000570| 2d 20 32 30 3b 0d 0a 09 | 09 62 72 65 61 6b 3b 0d |- 20;...|.break;.|
|00000580| 0a 09 63 61 73 65 20 4d | 42 5f 4f 4b 43 61 6e 63 |..case M|B_OKCanc|
|00000590| 65 6c 3a 0d 0a 09 09 43 | 61 6e 63 65 6c 42 75 74 |el:....C|ancelBut|
|000005a0| 74 6f 6e 2e 57 69 6e 4c | 65 66 74 20 3d 20 57 69 |ton.WinL|eft = Wi|
|000005b0| 6e 57 69 64 74 68 20 2d | 20 35 32 3b 0d 0a 09 09 |nWidth -| 52;....|
|000005c0| 43 61 6e 63 65 6c 42 75 | 74 74 6f 6e 2e 57 69 6e |CancelBu|tton.Win|
|000005d0| 54 6f 70 20 3d 20 57 69 | 6e 48 65 69 67 68 74 20 |Top = Wi|nHeight |
|000005e0| 2d 20 32 30 3b 0d 0a 09 | 09 4f 4b 42 75 74 74 6f |- 20;...|.OKButto|
|000005f0| 6e 2e 57 69 6e 4c 65 66 | 74 20 3d 20 57 69 6e 57 |n.WinLef|t = WinW|
|00000600| 69 64 74 68 20 2d 20 31 | 30 34 3b 0d 0a 09 09 4f |idth - 1|04;....O|
|00000610| 4b 42 75 74 74 6f 6e 2e | 57 69 6e 54 6f 70 20 3d |KButton.|WinTop =|
|00000620| 20 57 69 6e 48 65 69 67 | 68 74 20 2d 20 32 30 3b | WinHeig|ht - 20;|
|00000630| 0d 0a 09 09 62 72 65 61 | 6b 3b 0d 0a 09 63 61 73 |....brea|k;...cas|
|00000640| 65 20 4d 42 5f 4f 4b 3a | 0d 0a 09 09 4f 4b 42 75 |e MB_OK:|....OKBu|
|00000650| 74 74 6f 6e 2e 57 69 6e | 4c 65 66 74 20 3d 20 57 |tton.Win|Left = W|
|00000660| 69 6e 57 69 64 74 68 20 | 2d 20 35 32 3b 0d 0a 09 |inWidth |- 52;...|
|00000670| 09 4f 4b 42 75 74 74 6f | 6e 2e 57 69 6e 54 6f 70 |.OKButto|n.WinTop|
|00000680| 20 3d 20 57 69 6e 48 65 | 69 67 68 74 20 2d 20 32 | = WinHe|ight - 2|
|00000690| 30 3b 0d 0a 09 09 62 72 | 65 61 6b 3b 0d 0a 09 7d |0;....br|eak;...}|
|000006a0| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|000006b0| 52 65 73 69 7a 65 64 28 | 29 0d 0a 7b 0d 0a 09 53 |Resized(|)..{...S|
|000006c0| 75 70 65 72 2e 52 65 73 | 69 7a 65 64 28 29 3b 0d |uper.Res|ized();.|
|000006d0| 0a 09 4d 65 73 73 61 67 | 65 41 72 65 61 2e 53 65 |..Messag|eArea.Se|
|000006e0| 74 53 69 7a 65 28 57 69 | 6e 57 69 64 74 68 2d 32 |tSize(Wi|nWidth-2|
|000006f0| 30 2c 20 57 69 6e 48 65 | 69 67 68 74 2d 34 34 29 |0, WinHe|ight-44)|
|00000700| 3b 0d 0a 7d 0d 0a 0d 0a | 66 75 6e 63 74 69 6f 6e |;..}....|function|
|00000710| 20 66 6c 6f 61 74 20 47 | 65 74 48 65 69 67 68 74 | float G|etHeight|
|00000720| 28 43 61 6e 76 61 73 20 | 43 29 0d 0a 7b 0d 0a 09 |(Canvas |C)..{...|
|00000730| 72 65 74 75 72 6e 20 34 | 34 20 2b 20 4d 65 73 73 |return 4|4 + Mess|
|00000740| 61 67 65 41 72 65 61 2e | 47 65 74 48 65 69 67 68 |ageArea.|GetHeigh|
|00000750| 74 28 43 29 3b 0d 0a 7d | 0d 0a 0d 0a 66 75 6e 63 |t(C);..}|....func|
|00000760| 74 69 6f 6e 20 50 61 69 | 6e 74 28 43 61 6e 76 61 |tion Pai|nt(Canva|
|00000770| 73 20 43 2c 20 66 6c 6f | 61 74 20 58 2c 20 66 6c |s C, flo|at X, fl|
|00000780| 6f 61 74 20 59 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |oat Y)..|{...loca|
|00000790| 6c 20 54 65 78 74 75 72 | 65 20 54 3b 0d 0a 09 53 |l Textur|e T;...S|
|000007a0| 75 70 65 72 2e 50 61 69 | 6e 74 28 43 2c 20 58 2c |uper.Pai|nt(C, X,|
|000007b0| 20 59 29 3b 0d 0a 09 54 | 20 3d 20 47 65 74 4c 6f | Y);...T| = GetLo|
|000007c0| 6f 6b 41 6e 64 46 65 65 | 6c 54 65 78 74 75 72 65 |okAndFee|lTexture|
|000007d0| 28 29 3b 0d 0a 09 44 72 | 61 77 55 70 42 65 76 65 |();...Dr|awUpBeve|
|000007e0| 6c 28 20 43 2c 20 30 2c | 20 57 69 6e 48 65 69 67 |l( C, 0,| WinHeig|
|000007f0| 68 74 2d 32 34 2c 20 57 | 69 6e 57 69 64 74 68 2c |ht-24, W|inWidth,|
|00000800| 20 32 34 2c 20 54 29 3b | 0d 0a 7d 0d 0a 0d 0a 66 | 24, T);|..}....f|
|00000810| 75 6e 63 74 69 6f 6e 20 | 53 65 74 75 70 4d 65 73 |unction |SetupMes|
|00000820| 73 61 67 65 42 6f 78 43 | 6c 69 65 6e 74 28 73 74 |sageBoxC|lient(st|
|00000830| 72 69 6e 67 20 49 6e 4d | 65 73 73 61 67 65 2c 20 |ring InM|essage, |
|00000840| 4d 65 73 73 61 67 65 42 | 6f 78 42 75 74 74 6f 6e |MessageB|oxButton|
|00000850| 73 20 49 6e 42 75 74 74 | 6f 6e 73 2c 20 4d 65 73 |s InButt|ons, Mes|
|00000860| 73 61 67 65 42 6f 78 52 | 65 73 75 6c 74 20 49 6e |sageBoxR|esult In|
|00000870| 45 6e 74 65 72 52 65 73 | 75 6c 74 29 0d 0a 7b 0d |EnterRes|ult)..{.|
|00000880| 0a 09 4d 65 73 73 61 67 | 65 41 72 65 61 2e 4d 65 |..Messag|eArea.Me|
|00000890| 73 73 61 67 65 20 3d 20 | 49 6e 4d 65 73 73 61 67 |ssage = |InMessag|
|000008a0| 65 3b 0d 0a 09 42 75 74 | 74 6f 6e 73 20 3d 20 49 |e;...But|tons = I|
|000008b0| 6e 42 75 74 74 6f 6e 73 | 3b 0d 0a 09 45 6e 74 65 |nButtons|;...Ente|
|000008c0| 72 52 65 73 75 6c 74 20 | 3d 20 49 6e 45 6e 74 65 |rResult |= InEnte|
|000008d0| 72 52 65 73 75 6c 74 3b | 0d 0a 0d 0a 09 2f 2f 20 |rResult;|.....// |
|000008e0| 43 72 65 61 74 65 20 62 | 75 74 74 6f 6e 73 0d 0a |Create b|uttons..|
|000008f0| 09 73 77 69 74 63 68 28 | 42 75 74 74 6f 6e 73 29 |.switch(|Buttons)|
|00000900| 0d 0a 09 7b 0d 0a 09 63 | 61 73 65 20 4d 42 5f 59 |...{...c|ase MB_Y|
|00000910| 65 73 4e 6f 43 61 6e 63 | 65 6c 3a 0d 0a 09 09 43 |esNoCanc|el:....C|
|00000920| 61 6e 63 65 6c 42 75 74 | 74 6f 6e 20 3d 20 55 57 |ancelBut|ton = UW|
|00000930| 69 6e 64 6f 77 53 6d 61 | 6c 6c 42 75 74 74 6f 6e |indowSma|llButton|
|00000940| 28 43 72 65 61 74 65 43 | 6f 6e 74 72 6f 6c 28 63 |(CreateC|ontrol(c|
|00000950| 6c 61 73 73 27 55 57 69 | 6e 64 6f 77 53 6d 61 6c |lass'UWi|ndowSmal|
|00000960| 6c 42 75 74 74 6f 6e 27 | 2c 20 57 69 6e 57 69 64 |lButton'|, WinWid|
|00000970| 74 68 20 2d 20 35 32 2c | 20 57 69 6e 48 65 69 67 |th - 52,| WinHeig|
|00000980| 68 74 20 2d 20 32 30 2c | 20 34 38 2c 20 31 36 29 |ht - 20,| 48, 16)|
|00000990| 29 3b 0d 0a 09 09 43 61 | 6e 63 65 6c 42 75 74 74 |);....Ca|ncelButt|
|000009a0| 6f 6e 2e 53 65 74 54 65 | 78 74 28 43 61 6e 63 65 |on.SetTe|xt(Cance|
|000009b0| 6c 54 65 78 74 29 3b 0d | 0a 09 09 69 66 28 45 6e |lText);.|...if(En|
|000009c0| 74 65 72 52 65 73 75 6c | 74 20 3d 3d 20 4d 52 5f |terResul|t == MR_|
|000009d0| 43 61 6e 63 65 6c 29 0d | 0a 09 09 09 43 61 6e 63 |Cancel).|....Canc|
|000009e0| 65 6c 42 75 74 74 6f 6e | 2e 53 65 74 46 6f 6e 74 |elButton|.SetFont|
|000009f0| 28 46 5f 42 6f 6c 64 29 | 3b 0d 0a 09 09 65 6c 73 |(F_Bold)|;....els|
|00000a00| 65 0d 0a 09 09 09 43 61 | 6e 63 65 6c 42 75 74 74 |e.....Ca|ncelButt|
|00000a10| 6f 6e 2e 53 65 74 46 6f | 6e 74 28 46 5f 4e 6f 72 |on.SetFo|nt(F_Nor|
|00000a20| 6d 61 6c 29 3b 0d 0a 09 | 09 4e 6f 42 75 74 74 6f |mal);...|.NoButto|
|00000a30| 6e 20 3d 20 55 57 69 6e | 64 6f 77 53 6d 61 6c 6c |n = UWin|dowSmall|
|00000a40| 42 75 74 74 6f 6e 28 43 | 72 65 61 74 65 43 6f 6e |Button(C|reateCon|
|00000a50| 74 72 6f 6c 28 63 6c 61 | 73 73 27 55 57 69 6e 64 |trol(cla|ss'UWind|
|00000a60| 6f 77 53 6d 61 6c 6c 42 | 75 74 74 6f 6e 27 2c 20 |owSmallB|utton', |
|00000a70| 57 69 6e 57 69 64 74 68 | 20 2d 20 31 30 34 2c 20 |WinWidth| - 104, |
|00000a80| 57 69 6e 48 65 69 67 68 | 74 20 2d 20 32 30 2c 20 |WinHeigh|t - 20, |
|00000a90| 34 38 2c 20 31 36 29 29 | 3b 0d 0a 09 09 4e 6f 42 |48, 16))|;....NoB|
|00000aa0| 75 74 74 6f 6e 2e 53 65 | 74 54 65 78 74 28 4e 6f |utton.Se|tText(No|
|00000ab0| 54 65 78 74 29 3b 0d 0a | 09 09 69 66 28 45 6e 74 |Text);..|..if(Ent|
|00000ac0| 65 72 52 65 73 75 6c 74 | 20 3d 3d 20 4d 52 5f 4e |erResult| == MR_N|
|00000ad0| 6f 29 0d 0a 09 09 09 4e | 6f 42 75 74 74 6f 6e 2e |o).....N|oButton.|
|00000ae0| 53 65 74 46 6f 6e 74 28 | 46 5f 42 6f 6c 64 29 3b |SetFont(|F_Bold);|
|00000af0| 0d 0a 09 09 65 6c 73 65 | 0d 0a 09 09 09 4e 6f 42 |....else|.....NoB|
|00000b00| 75 74 74 6f 6e 2e 53 65 | 74 46 6f 6e 74 28 46 5f |utton.Se|tFont(F_|
|00000b10| 4e 6f 72 6d 61 6c 29 3b | 0d 0a 09 09 59 65 73 42 |Normal);|....YesB|
|00000b20| 75 74 74 6f 6e 20 3d 20 | 55 57 69 6e 64 6f 77 53 |utton = |UWindowS|
|00000b30| 6d 61 6c 6c 42 75 74 74 | 6f 6e 28 43 72 65 61 74 |mallButt|on(Creat|
|00000b40| 65 43 6f 6e 74 72 6f 6c | 28 63 6c 61 73 73 27 55 |eControl|(class'U|
|00000b50| 57 69 6e 64 6f 77 53 6d | 61 6c 6c 42 75 74 74 6f |WindowSm|allButto|
|00000b60| 6e 27 2c 20 57 69 6e 57 | 69 64 74 68 20 2d 20 31 |n', WinW|idth - 1|
|00000b70| 35 36 2c 20 57 69 6e 48 | 65 69 67 68 74 20 2d 20 |56, WinH|eight - |
|00000b80| 32 30 2c 20 34 38 2c 20 | 31 36 29 29 3b 0d 0a 09 |20, 48, |16));...|
|00000b90| 09 59 65 73 42 75 74 74 | 6f 6e 2e 53 65 74 54 65 |.YesButt|on.SetTe|
|00000ba0| 78 74 28 59 65 73 54 65 | 78 74 29 3b 0d 0a 09 09 |xt(YesTe|xt);....|
|00000bb0| 69 66 28 45 6e 74 65 72 | 52 65 73 75 6c 74 20 3d |if(Enter|Result =|
|00000bc0| 3d 20 4d 52 5f 59 65 73 | 29 0d 0a 09 09 09 59 65 |= MR_Yes|).....Ye|
|00000bd0| 73 42 75 74 74 6f 6e 2e | 53 65 74 46 6f 6e 74 28 |sButton.|SetFont(|
|00000be0| 46 5f 42 6f 6c 64 29 3b | 0d 0a 09 09 65 6c 73 65 |F_Bold);|....else|
|00000bf0| 0d 0a 09 09 09 59 65 73 | 42 75 74 74 6f 6e 2e 53 |.....Yes|Button.S|
|00000c00| 65 74 46 6f 6e 74 28 46 | 5f 4e 6f 72 6d 61 6c 29 |etFont(F|_Normal)|
|00000c10| 3b 0d 0a 09 09 62 72 65 | 61 6b 3b 0d 0a 09 63 61 |;....bre|ak;...ca|
|00000c20| 73 65 20 4d 42 5f 59 65 | 73 4e 6f 3a 0d 0a 09 09 |se MB_Ye|sNo:....|
|00000c30| 4e 6f 42 75 74 74 6f 6e | 20 3d 20 55 57 69 6e 64 |NoButton| = UWind|
|00000c40| 6f 77 53 6d 61 6c 6c 42 | 75 74 74 6f 6e 28 43 72 |owSmallB|utton(Cr|
|00000c50| 65 61 74 65 43 6f 6e 74 | 72 6f 6c 28 63 6c 61 73 |eateCont|rol(clas|
|00000c60| 73 27 55 57 69 6e 64 6f | 77 53 6d 61 6c 6c 42 75 |s'UWindo|wSmallBu|
|00000c70| 74 74 6f 6e 27 2c 20 57 | 69 6e 57 69 64 74 68 20 |tton', W|inWidth |
|00000c80| 2d 20 35 32 2c 20 57 69 | 6e 48 65 69 67 68 74 20 |- 52, Wi|nHeight |
|00000c90| 2d 20 32 30 2c 20 34 38 | 2c 20 31 36 29 29 3b 0d |- 20, 48|, 16));.|
|00000ca0| 0a 09 09 4e 6f 42 75 74 | 74 6f 6e 2e 53 65 74 54 |...NoBut|ton.SetT|
|00000cb0| 65 78 74 28 4e 6f 54 65 | 78 74 29 3b 0d 0a 09 09 |ext(NoTe|xt);....|
|00000cc0| 69 66 28 45 6e 74 65 72 | 52 65 73 75 6c 74 20 3d |if(Enter|Result =|
|00000cd0| 3d 20 4d 52 5f 4e 6f 29 | 0d 0a 09 09 09 4e 6f 42 |= MR_No)|.....NoB|
|00000ce0| 75 74 74 6f 6e 2e 53 65 | 74 46 6f 6e 74 28 46 5f |utton.Se|tFont(F_|
|00000cf0| 42 6f 6c 64 29 3b 0d 0a | 09 09 65 6c 73 65 0d 0a |Bold);..|..else..|
|00000d00| 09 09 09 4e 6f 42 75 74 | 74 6f 6e 2e 53 65 74 46 |...NoBut|ton.SetF|
|00000d10| 6f 6e 74 28 46 5f 4e 6f | 72 6d 61 6c 29 3b 0d 0a |ont(F_No|rmal);..|
|00000d20| 09 09 59 65 73 42 75 74 | 74 6f 6e 20 3d 20 55 57 |..YesBut|ton = UW|
|00000d30| 69 6e 64 6f 77 53 6d 61 | 6c 6c 42 75 74 74 6f 6e |indowSma|llButton|
|00000d40| 28 43 72 65 61 74 65 43 | 6f 6e 74 72 6f 6c 28 63 |(CreateC|ontrol(c|
|00000d50| 6c 61 73 73 27 55 57 69 | 6e 64 6f 77 53 6d 61 6c |lass'UWi|ndowSmal|
|00000d60| 6c 42 75 74 74 6f 6e 27 | 2c 20 57 69 6e 57 69 64 |lButton'|, WinWid|
|00000d70| 74 68 20 2d 20 31 30 34 | 2c 20 57 69 6e 48 65 69 |th - 104|, WinHei|
|00000d80| 67 68 74 20 2d 20 32 30 | 2c 20 34 38 2c 20 31 36 |ght - 20|, 48, 16|
|00000d90| 29 29 3b 0d 0a 09 09 59 | 65 73 42 75 74 74 6f 6e |));....Y|esButton|
|00000da0| 2e 53 65 74 54 65 78 74 | 28 59 65 73 54 65 78 74 |.SetText|(YesText|
|00000db0| 29 3b 0d 0a 09 09 69 66 | 28 45 6e 74 65 72 52 65 |);....if|(EnterRe|
|00000dc0| 73 75 6c 74 20 3d 3d 20 | 4d 52 5f 59 65 73 29 0d |sult == |MR_Yes).|
|00000dd0| 0a 09 09 09 59 65 73 42 | 75 74 74 6f 6e 2e 53 65 |....YesB|utton.Se|
|00000de0| 74 46 6f 6e 74 28 46 5f | 42 6f 6c 64 29 3b 0d 0a |tFont(F_|Bold);..|
|00000df0| 09 09 65 6c 73 65 0d 0a | 09 09 09 59 65 73 42 75 |..else..|...YesBu|
|00000e00| 74 74 6f 6e 2e 53 65 74 | 46 6f 6e 74 28 46 5f 4e |tton.Set|Font(F_N|
|00000e10| 6f 72 6d 61 6c 29 3b 0d | 0a 09 09 62 72 65 61 6b |ormal);.|...break|
|00000e20| 3b 0d 0a 09 63 61 73 65 | 20 4d 42 5f 4f 4b 43 61 |;...case| MB_OKCa|
|00000e30| 6e 63 65 6c 3a 0d 0a 09 | 09 43 61 6e 63 65 6c 42 |ncel:...|.CancelB|
|00000e40| 75 74 74 6f 6e 20 3d 20 | 55 57 69 6e 64 6f 77 53 |utton = |UWindowS|
|00000e50| 6d 61 6c 6c 42 75 74 74 | 6f 6e 28 43 72 65 61 74 |mallButt|on(Creat|
|00000e60| 65 43 6f 6e 74 72 6f 6c | 28 63 6c 61 73 73 27 55 |eControl|(class'U|
|00000e70| 57 69 6e 64 6f 77 53 6d | 61 6c 6c 42 75 74 74 6f |WindowSm|allButto|
|00000e80| 6e 27 2c 20 57 69 6e 57 | 69 64 74 68 20 2d 20 35 |n', WinW|idth - 5|
|00000e90| 32 2c 20 57 69 6e 48 65 | 69 67 68 74 20 2d 20 32 |2, WinHe|ight - 2|
|00000ea0| 30 2c 20 34 38 2c 20 31 | 36 29 29 3b 0d 0a 09 09 |0, 48, 1|6));....|
|00000eb0| 43 61 6e 63 65 6c 42 75 | 74 74 6f 6e 2e 53 65 74 |CancelBu|tton.Set|
|00000ec0| 54 65 78 74 28 43 61 6e | 63 65 6c 54 65 78 74 29 |Text(Can|celText)|
|00000ed0| 3b 0d 0a 09 09 69 66 28 | 45 6e 74 65 72 52 65 73 |;....if(|EnterRes|
|00000ee0| 75 6c 74 20 3d 3d 20 4d | 52 5f 43 61 6e 63 65 6c |ult == M|R_Cancel|
|00000ef0| 29 0d 0a 09 09 09 43 61 | 6e 63 65 6c 42 75 74 74 |).....Ca|ncelButt|
|00000f00| 6f 6e 2e 53 65 74 46 6f | 6e 74 28 46 5f 42 6f 6c |on.SetFo|nt(F_Bol|
|00000f10| 64 29 3b 0d 0a 09 09 65 | 6c 73 65 0d 0a 09 09 09 |d);....e|lse.....|
|00000f20| 43 61 6e 63 65 6c 42 75 | 74 74 6f 6e 2e 53 65 74 |CancelBu|tton.Set|
|00000f30| 46 6f 6e 74 28 46 5f 4e | 6f 72 6d 61 6c 29 3b 0d |Font(F_N|ormal);.|
|00000f40| 0a 09 09 4f 4b 42 75 74 | 74 6f 6e 20 3d 20 55 57 |...OKBut|ton = UW|
|00000f50| 69 6e 64 6f 77 53 6d 61 | 6c 6c 42 75 74 74 6f 6e |indowSma|llButton|
|00000f60| 28 43 72 65 61 74 65 43 | 6f 6e 74 72 6f 6c 28 63 |(CreateC|ontrol(c|
|00000f70| 6c 61 73 73 27 55 57 69 | 6e 64 6f 77 53 6d 61 6c |lass'UWi|ndowSmal|
|00000f80| 6c 42 75 74 74 6f 6e 27 | 2c 20 57 69 6e 57 69 64 |lButton'|, WinWid|
|00000f90| 74 68 20 2d 20 31 30 34 | 2c 20 57 69 6e 48 65 69 |th - 104|, WinHei|
|00000fa0| 67 68 74 20 2d 20 32 30 | 2c 20 34 38 2c 20 31 36 |ght - 20|, 48, 16|
|00000fb0| 29 29 3b 0d 0a 09 09 4f | 4b 42 75 74 74 6f 6e 2e |));....O|KButton.|
|00000fc0| 53 65 74 54 65 78 74 28 | 4f 4b 54 65 78 74 29 3b |SetText(|OKText);|
|00000fd0| 0d 0a 09 09 69 66 28 45 | 6e 74 65 72 52 65 73 75 |....if(E|nterResu|
|00000fe0| 6c 74 20 3d 3d 20 4d 52 | 5f 4f 4b 29 0d 0a 09 09 |lt == MR|_OK)....|
|00000ff0| 09 4f 4b 42 75 74 74 6f | 6e 2e 53 65 74 46 6f 6e |.OKButto|n.SetFon|
|00001000| 74 28 46 5f 42 6f 6c 64 | 29 3b 0d 0a 09 09 65 6c |t(F_Bold|);....el|
|00001010| 73 65 0d 0a 09 09 09 4f | 4b 42 75 74 74 6f 6e 2e |se.....O|KButton.|
|00001020| 53 65 74 46 6f 6e 74 28 | 46 5f 4e 6f 72 6d 61 6c |SetFont(|F_Normal|
|00001030| 29 3b 0d 0a 09 09 62 72 | 65 61 6b 3b 0d 0a 09 63 |);....br|eak;...c|
|00001040| 61 73 65 20 4d 42 5f 4f | 4b 3a 0d 0a 09 09 4f 4b |ase MB_O|K:....OK|
|00001050| 42 75 74 74 6f 6e 20 3d | 20 55 57 69 6e 64 6f 77 |Button =| UWindow|
|00001060| 53 6d 61 6c 6c 42 75 74 | 74 6f 6e 28 43 72 65 61 |SmallBut|ton(Crea|
|00001070| 74 65 43 6f 6e 74 72 6f | 6c 28 63 6c 61 73 73 27 |teContro|l(class'|
|00001080| 55 57 69 6e 64 6f 77 53 | 6d 61 6c 6c 42 75 74 74 |UWindowS|mallButt|
|00001090| 6f 6e 27 2c 20 57 69 6e | 57 69 64 74 68 20 2d 20 |on', Win|Width - |
|000010a0| 35 32 2c 20 57 69 6e 48 | 65 69 67 68 74 20 2d 20 |52, WinH|eight - |
|000010b0| 32 30 2c 20 34 38 2c 20 | 31 36 29 29 3b 0d 0a 09 |20, 48, |16));...|
|000010c0| 09 4f 4b 42 75 74 74 6f | 6e 2e 53 65 74 54 65 78 |.OKButto|n.SetTex|
|000010d0| 74 28 4f 4b 54 65 78 74 | 29 3b 0d 0a 09 09 69 66 |t(OKText|);....if|
|000010e0| 28 45 6e 74 65 72 52 65 | 73 75 6c 74 20 3d 3d 20 |(EnterRe|sult == |
|000010f0| 4d 52 5f 4f 4b 29 0d 0a | 09 09 09 4f 4b 42 75 74 |MR_OK)..|...OKBut|
|00001100| 74 6f 6e 2e 53 65 74 46 | 6f 6e 74 28 46 5f 42 6f |ton.SetF|ont(F_Bo|
|00001110| 6c 64 29 3b 0d 0a 09 09 | 65 6c 73 65 0d 0a 09 09 |ld);....|else....|
|00001120| 09 4f 4b 42 75 74 74 6f | 6e 2e 53 65 74 46 6f 6e |.OKButto|n.SetFon|
|00001130| 74 28 46 5f 4e 6f 72 6d | 61 6c 29 3b 0d 0a 09 09 |t(F_Norm|al);....|
|00001140| 62 72 65 61 6b 3b 0d 0a | 09 7d 0d 0a 7d 0d 0a 0d |break;..|.}..}...|
|00001150| 0a 66 75 6e 63 74 69 6f | 6e 20 4e 6f 74 69 66 79 |.functio|n Notify|
|00001160| 28 55 57 69 6e 64 6f 77 | 44 69 61 6c 6f 67 43 6f |(UWindow|DialogCo|
|00001170| 6e 74 72 6f 6c 20 43 2c | 20 62 79 74 65 20 45 29 |ntrol C,| byte E)|
|00001180| 0d 0a 7b 0d 0a 09 6c 6f | 63 61 6c 20 55 57 69 6e |..{...lo|cal UWin|
|00001190| 64 6f 77 4d 65 73 73 61 | 67 65 42 6f 78 20 50 3b |dowMessa|geBox P;|
|000011a0| 0d 0a 0d 0a 09 50 20 3d | 20 55 57 69 6e 64 6f 77 |.....P =| UWindow|
|000011b0| 4d 65 73 73 61 67 65 42 | 6f 78 28 50 61 72 65 6e |MessageB|ox(Paren|
|000011c0| 74 57 69 6e 64 6f 77 29 | 3b 0d 0a 0d 0a 09 69 66 |tWindow)|;.....if|
|000011d0| 28 45 20 3d 3d 20 44 45 | 5f 43 6c 69 63 6b 29 0d |(E == DE|_Click).|
|000011e0| 0a 09 7b 0d 0a 09 09 73 | 77 69 74 63 68 28 43 29 |..{....s|witch(C)|
|000011f0| 0d 0a 09 09 7b 0d 0a 09 | 09 63 61 73 65 20 59 65 |....{...|.case Ye|
|00001200| 73 42 75 74 74 6f 6e 3a | 0d 0a 09 09 09 50 2e 52 |sButton:|.....P.R|
|00001210| 65 73 75 6c 74 20 3d 20 | 4d 52 5f 59 65 73 3b 0d |esult = |MR_Yes;.|
|00001220| 0a 09 09 09 50 2e 43 6c | 6f 73 65 28 29 3b 09 09 |....P.Cl|ose();..|
|00001230| 09 0d 0a 09 09 09 62 72 | 65 61 6b 3b 0d 0a 09 09 |......br|eak;....|
|00001240| 63 61 73 65 20 4e 6f 42 | 75 74 74 6f 6e 3a 0d 0a |case NoB|utton:..|
|00001250| 09 09 09 50 2e 52 65 73 | 75 6c 74 20 3d 20 4d 52 |...P.Res|ult = MR|
|00001260| 5f 4e 6f 3b 0d 0a 09 09 | 09 50 2e 43 6c 6f 73 65 |_No;....|.P.Close|
|00001270| 28 29 3b 0d 0a 09 09 09 | 62 72 65 61 6b 3b 0d 0a |();.....|break;..|
|00001280| 09 09 63 61 73 65 20 4f | 4b 42 75 74 74 6f 6e 3a |..case O|KButton:|
|00001290| 0d 0a 09 09 09 50 2e 52 | 65 73 75 6c 74 20 3d 20 |.....P.R|esult = |
|000012a0| 4d 52 5f 4f 4b 3b 0d 0a | 09 09 09 50 2e 43 6c 6f |MR_OK;..|...P.Clo|
|000012b0| 73 65 28 29 3b 0d 0a 09 | 09 09 62 72 65 61 6b 3b |se();...|..break;|
|000012c0| 0d 0a 09 09 63 61 73 65 | 20 43 61 6e 63 65 6c 42 |....case| CancelB|
|000012d0| 75 74 74 6f 6e 3a 0d 0a | 09 09 09 50 2e 52 65 73 |utton:..|...P.Res|
|000012e0| 75 6c 74 20 3d 20 4d 52 | 5f 43 61 6e 63 65 6c 3b |ult = MR|_Cancel;|
|000012f0| 0d 0a 09 09 09 50 2e 43 | 6c 6f 73 65 28 29 3b 0d |.....P.C|lose();.|
|00001300| 0a 09 09 09 62 72 65 61 | 6b 3b 0d 0a 09 09 7d 0d |....brea|k;....}.|
|00001310| 0a 09 7d 0d 0a 7d 0d 0a | 0d 0a 00 |..}..}..|... |
+--------+-------------------------+-------------------------+--------+--------+